package cn.com.geoway.booksystem.dao;


import cn.com.geoway.booksystem.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;


public interface UserDao    extends JpaRepository<User,Integer>,JpaSpecificationExecutor<User> {
	
	
	@Query(value="select * from t_a_user where id = ?1",nativeQuery = true)
	public User findId(Integer id);
	
	public User findByName(String name);
	
	
}
